package com.bwie.controller;

import com.bwie.service.DictService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;

/**
 * @Author: tsh
 * @Date: 2025/7/25 08:37
 * @Description: TODO
 **/
@RestController
@RequestMapping("/goods/dict")
@Api(tags = "字典管理")
@Slf4j
public class DictController {
    @Autowired
    DictService dictService;

    /**
     * @param pageInfoVo
     * @return com.bwie.utils.R
     * @description 获取字典列表(分页)
     * @params
     * @author tsh
     * @date 2025/7/25 8:39
     */
    @PostMapping("/getDictList")
    @ApiOperation(value = "获取字典列表(分页)")
    public R getDictList(@RequestBody PageInfoVo pageInfoVo) {
        return dictService.getDictList(pageInfoVo);
    }
}
